package com.future.mayi.qsale.model;

import java.util.List;

/**
 * Created by Administrator on 2018/8/21.
 */

public class RedPacketInfoModel {

    //今天已经签到
    public static final int IS_SIGN_IN = 1;

    /**
     * redpack_list : [{"redpack_id":1,"redpack_name":"连续签到第一天","par_value":1,"day":1},{"redpack_id":2,"redpack_name":"连续签到第二天","par_value":2,"day":2},{"redpack_id":3,"redpack_name":"连续签到第三天","par_value":3,"day":3},{"redpack_id":4,"redpack_name":"连续签到第四天","par_value":4,"day":4},{"redpack_id":5,"redpack_name":"连续签到第五天","par_value":5,"day":5}]
     * continuity : 1
     * prize_card_num : 1
     * prize_info : [{"prize_id":1,"prize_name":"iPhone X","prize_img":"http://test.sh.com/uploads/20180626/e6d3f0364b83624d6d9876e52c38d987.jpg"},{"prize_id":2,"prize_name":"888大红包","prize_img":"http://test.sh.com/uploads/20180626/e6d3f0364b83624d6d9876e52c38d987.jpg"},{"prize_id":3,"prize_name":"神券一张","prize_img":"http://test.sh.com/uploads/20180626/e6d3f0364b83624d6d9876e52c38d987.jpg"},{"prize_id":4,"prize_name":"88红包","prize_img":"http://test.sh.com/uploads/20180626/e6d3f0364b83624d6d9876e52c38d987.jpg"},{"prize_id":5,"prize_name":"66红包","prize_img":"http://test.sh.com/uploads/20180626/e6d3f0364b83624d6d9876e52c38d987.jpg"},{"prize_id":6,"prize_name":"8.8红包","prize_img":"http://test.sh.com/uploads/20180626/e6d3f0364b83624d6d9876e52c38d987.jpg"},{"prize_id":7,"prize_name":"6.6红包","prize_img":"http://test.sh.com/uploads/20180626/e6d3f0364b83624d6d9876e52c38d987.jpg"},{"prize_id":8,"prize_name":"50元话费","prize_img":"http://test.sh.com/uploads/20180626/e6d3f0364b83624d6d9876e52c38d987.jpg"},{"prize_id":9,"prize_name":"10元话费","prize_img":"http://test.sh.com/uploads/20180626/e6d3f0364b83624d6d9876e52c38d987.jpg"},{"prize_id":10,"prize_name":"谢谢参与","prize_img":"http://test.sh.com/uploads/20180626/e6d3f0364b83624d6d9876e52c38d987.jpg"}]
     */

    private int continuity;
    private int prize_card_num;
    private List<RedpackListBean> redpack_list;
    private List<PrizeInfoBean> prize_info;
    private int is_signIn;

    public boolean isSignIn() {
        return is_signIn == IS_SIGN_IN;
    }

    public int getContinuity() {
        return continuity;
    }

    public void setContinuity(int continuity) {
        this.continuity = continuity;
    }

    public int getPrize_card_num() {
        return prize_card_num;
    }

    public void setPrize_card_num(int prize_card_num) {
        this.prize_card_num = prize_card_num;
    }

    public List<RedpackListBean> getRedpack_list() {
        return redpack_list;
    }

    public void setRedpack_list(List<RedpackListBean> redpack_list) {
        this.redpack_list = redpack_list;
    }

    public List<PrizeInfoBean> getPrize_info() {
        return prize_info;
    }

    public void setPrize_info(List<PrizeInfoBean> prize_info) {
        this.prize_info = prize_info;
    }

    public static class RedpackListBean {
        /**
         * redpack_id : 1
         * redpack_name : 连续签到第一天
         * par_value : 1
         * day : 1
         */

        private int redpack_id;
        private String redpack_name;
        private float par_value;
        private int day;
        private boolean hasSignature;

        public boolean isHasSignature() {
            return hasSignature;
        }

        public void setHasSignature(boolean hasSignature) {
            this.hasSignature = hasSignature;
        }

        public int getRedpack_id() {
            return redpack_id;
        }

        public void setRedpack_id(int redpack_id) {
            this.redpack_id = redpack_id;
        }

        public String getRedpack_name() {
            return redpack_name;
        }

        public void setRedpack_name(String redpack_name) {
            this.redpack_name = redpack_name;
        }

        public float getPar_value() {
            return par_value;
        }

        public void setPar_value(float par_value) {
            this.par_value = par_value;
        }

        public int getDay() {
            return day;
        }

        public void setDay(int day) {
            this.day = day;
        }
    }

    public static class PrizeInfoBean {
        /**
         * prize_id : 1
         * prize_name : iPhone X
         * prize_img : http://test.sh.com/uploads/20180626/e6d3f0364b83624d6d9876e52c38d987.jpg
         */

        private int prize_id;
        private String prize_name;
        private String prize_img;

        public int getPrize_id() {
            return prize_id;
        }

        public void setPrize_id(int prize_id) {
            this.prize_id = prize_id;
        }

        public String getPrize_name() {
            return prize_name;
        }

        public void setPrize_name(String prize_name) {
            this.prize_name = prize_name;
        }

        public String getPrize_img() {
            return prize_img;
        }

        public void setPrize_img(String prize_img) {
            this.prize_img = prize_img;
        }
    }
}
